package org.javaymw.springboot.service;

import com.baomidou.mybatisplus.service.IService;
import com.github.pagehelper.Page;

import java.util.List;

import org.javaymw.springboot.dto.OrganizationDto;
import org.javaymw.springboot.dto.TreeOrganizationDto;
import org.javaymw.springboot.entity.OrganizationEntity;

/**
 * @Auther: zhaoxinguo
 * @Date: 2018/11/2 17:14
 * @Description:
 */
public interface OrganizationService extends IService<OrganizationEntity> {

    Page<OrganizationDto> getOrganizationByPage(int pageNum, int pageSize, Long parentId);

    List<OrganizationDto> findOrganizationList();

    List<TreeOrganizationDto> findOrganizationByTree();
}
